<?php use_stylesheets_for_form($form) ?>
<?php use_javascripts_for_form($form) ?>
<form action="<?php echo url_for('message/'.($form->getObject()->isNew() ? 'create' : 'update').(!$form->getObject()->isNew() ? '?id='.$form->getObject()->getId() : '')) ?>" method="post" <?php $form->isMultipart() and print 'enctype="multipart/form-data" ' ?>>
<?php if (!$form->getObject()->isNew()): ?>
<input type="hidden" name="sf_method" value="put" />
<?php endif; ?>
  <table width="600" border="0" cellspacing="0" cellpadding="0" summary="">
    <tr>
      <th colspan="2"><span>*</span><?php echo $form['author']->renderLabel('姓 名：') ?></th>
      <td width="190"><?php echo $form['author']->render(array('class' => 'name-input')) ?></td>
      <td width="323" id="name_show"><?php echo $form['author']->renderError() ?></td>
    </tr>
    <tr>
      <th colspan="2"><span>*</span><?php echo $form['phone']->renderLabel('电 话：') ?></th>
      <td><?php echo $form['phone']->render(array('class' => 'name-input')) ?></td>
      <td id="phone_show"><?php echo $form['phone']->renderError() ?></td>
    </tr>
    <tr>
      <th colspan="2"><span>*</span><?php echo $form['company']->renderLabel('公司：') ?></th>
      <td><?php echo $form['company']->render(array('class' => 'name-input')) ?></td>
      <td id="company_show"><?php echo $form['company']->renderError() ?></td>
    </tr>
    <tr>
      <td width="20">&nbsp;</td>
      <th width="67"><?php echo $form['work']->renderLabel('职位：') ?></th>
      <td><?php echo $form['work']->render(array('class' => 'name-input')) ?></td>
      <td><?php echo $form['work']->renderError() ?></td>
    </tr>
    <tr>
      <th colspan="2"><span>*</span><?php echo $form['email']->renderLabel('E-mail：') ?></th>
      <td><?php echo $form['email']->render(array('class' => 'name-input')) ?></td>
      <td id="em_show"><?php echo $form['email']->renderError() ?></td>
    </tr>
    <tr>
      <th height="40" colspan="2" valign="middle"><span>*</span><?php echo $form['content']->renderLabel('内容：') ?></th>
      <td colspan="2" rowspan="2"><?php echo $form['content']->render(array('class' => 'name-input','size' => '45*5')) ?></td>
    </tr>
    <tr>
      <td colspan="2">&nbsp;</td>
    </tr>
    <tr>
      <td colspan="2"><?php echo $form->renderHiddenFields() ?></td>
      <td><input type="image" value="提交" name="imageField" id="imageField" src="/../images/tj_btn.gif" class="btn"/></td>
      <td><?php echo $form['content']->renderError() ?></td>
    </tr>
  </table>
</form>